AC_INIT([InstrumentRack], [0.0.1])
AC_CANONICAL_SYSTEM

AM_INIT_AUTOMAKE(InstrumentRack, 0.0.1)

AC_LANG_CPLUSPLUS
AC_PROG_CC
AC_PROG_CXX
AC_EXEEXT

PKG_CHECK_MODULES([GTKMM3], [gtkmm-3.0 >= 3])

AC_SUBST([GTKMM3_CFLAGS])
AC_SUBST([GTKMM3_LIBS])

AC_ARG_ENABLE(maintainer-mode, [AS_HELP_STRING([--enable-maintainer-mode], [build with debugging and no optimization])],
[
maintainer_mode=yes
],
[
maintainer_mode=no
]
)

if test "$maintainer_mode" = "yes"; then
    CFLAGS="$CFLAGS -g -O0"
    CXXFLAGS="$CXXFLAGS -g -O0"  
fi

AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT
